<template>
	<view class="register">
		<Title :txt="i18n.syxq" :showback="true"></Title>
		<view class="white pt30 text--center">
			<view class="f28">
				{{sumOutput}} {{coin}}
			</view>
			<view class="f15 mt15 color-gray">
				{{i18n.cczl}}
			</view>
		</view>		
		<view class="bgcc mt28 px15 py5 white f14">
			<view class="item">
				<view>
					{{i18n.ccsj}}
				</view>
				<view class="">
					{{createDate}}
				</view>
			</view>
			<navigator :url="'../my/equipdetail?id='+this.orderId" class="item">
				<view>
					{{i18n.ddh}}
				</view>
				<view class="blcolor">
					{{orderId}} >
				</view>
			</navigator>
			<view class="item">
				<view>
					{{i18n.sbmc}}
				</view>
				<view class="">
					{{name}}
				</view>
			</view>
			<view class="item">
				<view>
					{{i18n.yfz}}
				</view>
				<view class="">
					{{hasStorageCapacity}} T
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				fundObj:{},
				createDate:"",
				sumOutput:"",
				orderId:"",
				name:"",
				hasStorageCapacity:"",
				arriveNumber:"",
				lockNumber:"",
				type:1,
				id:"",
				coin:""
			}
		},
		onLoad(options) {
			this.id=options.id
			this.type=options.type
		},
		computed: {
			i18n() {
				return this.$t('home');
			}
		},
		onShow() {
			let params={
				id:this.id
			}
			this.$http.post("index.getMineReleaseInfo",params).then(res=>{
				// console.log(res)
				this.fundObj  = res.data
				this.createDate=res.data.createDate
				this.sumOutput=res.data.sumOutput
				this.orderId=res.data.orderId
				this.name=res.data.name
				this.coin = res.data.coin
				this.hasStorageCapacity=res.data.hasStorageCapacity
				this.arriveNumber=res.data.arriveNumber
				this.lockNumber=res.data.lockNumber
			})
		}
	}
</script>

<style lang="less">
	.item{
		display: flex;
		padding:20rpx 0rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-left: auto;
		margin-right: auto;
	}
</style>

